package com.ygq.train.business.service;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import com.ygq.train.business.domain.DailyTrainSeat;
import com.ygq.train.business.domain.DailyTrainSeatExample;
import com.ygq.train.business.req.SeatSellReq;
import com.ygq.train.business.resp.SeatSellResp;
import com.ygq.train.common.resp.PageResp;
import com.ygq.train.business.req.DailyTrainSeatQueryReq;
import com.ygq.train.business.req.DailyTrainSeatSaveReq;
import com.ygq.train.business.resp.DailyTrainSeatQueryResp;

import java.util.Date;
import java.util.List;


public interface DailyTrainSeatService {

     void save(DailyTrainSeatSaveReq req);

     PageResp<DailyTrainSeatQueryResp> queryList(DailyTrainSeatQueryReq req);

     void delete(Long id);

     List<DailyTrainSeatQueryResp> queryMine();

     void genDaily(Date date, String trainCode);

     int countSeat(Date date, String trainCode, String seatType);

     int countSeat(Date date, String trainCode);

     List<DailyTrainSeat> selectByCarriage(Date date,String trainCode,Integer carriageIndex);

     List<SeatSellResp> querySeatSell(SeatSellReq req);


}